﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="ViewCertificate.aspx.cs" Inherits="Train_ViewCertificate" %>

<%@ Register Src="../Control/DSelYearMonth.ascx" TagName="DSelYearMonth" TagPrefix="uc3" %>
<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<%@ Register Src="../Control/SelUser.ascx" TagName="SelUser" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">

    <script language="javascript" type="text/javascript">
        function validate() {
            var selyear = document.getElementById("DSelYearMonth1_SelYear");
            var selmonth = document.getElementById("DSelYearMonth1_SelMonth");
            if (selyear.value == "0" && selmonth.value != "0" || selyear.value != "0" && selmonth.value == "0") {
                alert("年份和月份全部选择或全不选择！");
                return false;
            }
        }
    </script>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        datamember="View_Certificate">
    </infolight:webdatasource>
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
             <td style="width:100px">
                <asp:Label ID="Label1" runat="server" Text="部门名称：" Width="65px"></asp:Label>
            </td>
            <td align="left">
                <uc1:DepartmentDList ID="QueryDepartment" runat="server" />
            </td>
            <td style="width:100px">
                <asp:Label ID="Label2" runat="server" Text="员工名称：" Width="66px"></asp:Label>
            </td>
            <td align="left" style="width: 180px">
                <uc2:SelUser ID="SelUser" runat="server" />
            </td>
            <td style="width: 82px" rowspan="2">
                <span class="roundbtn">
                    <asp:LinkButton ID="btnQuery" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查&nbsp;&nbsp;&nbsp;&nbsp;询&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="btnQuery_Click"></asp:LinkButton>
                </span>
            </td>
        </tr>
        <tr>
            <td style="height: 26px">
                <asp:Label ID="Label3" runat="server" Text="查询条件："></asp:Label>
            </td>
            <td style="width: 167px; height: 26px;">
                <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow" Width="199px">
                    <asp:ListItem Selected="True">终止有效日期</asp:ListItem>
                    <asp:ListItem>复审日期</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td style="height: 26px">
                <asp:Label ID="Label4" runat="server" Text="选择日期：" Width="92px"></asp:Label>
            </td>
            <td style="width: 180px; height: 26px;">
                <uc3:DSelYearMonth ID="DSelYearMonth1" runat="server" />
            </td>
        </tr>
    </table>
    <infolight:webgridview id="wgvMaster" runat="server" cellpadding="5" createinnernavigator="False"
        datasourceid="Master" forecolor="#333333" width="100%" aborticonurl="../Image/UIPics/Abort.gif"
        addiconurl="../Image/UIPics/Add.gif" applyiconurl="../Image/UIPics/Apply.gif"
        canceliconurl="../Image/UIPics/Cancel.gif" mouseoveraborticonurl="../Image/UIPics/Abort2.gif"
        mouseoveraddiconurl="../Image/UIPics/Add2.gif" mouseoverapplyiconurl="../Image/UIPics/Apply2.gif"
        mouseovercanceliconurl="../Image/UIPics/Cancel2.gif" mouseoverokiconurl="../Image/UIPics/OK2.gif"
        mouseoverqueryiconurl="../Image/UIPics/Query2.gif" okiconurl="../Image/UIPics/OK.gif"
        queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False" backcolor="White"
        bordercolor="White" borderstyle="Groove" borderwidth="2px" pagesize="15">
        <pagersettings mode="NumericFirstLast" />
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True"></footerstyle>
        <navcontrols>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
        <columns>
                <asp:BoundField DataField="CertId" HeaderText="编号" SortExpression="CertId" />
                <asp:BoundField DataField="empname" HeaderText="员工名称" SortExpression="empname" />
                <asp:BoundField DataField="departmentname" HeaderText="部门名称" SortExpression="departmentname" />
                <asp:BoundField DataField="CertName" HeaderText="证书名称" SortExpression="CertName" />
                <asp:BoundField DataField="CertificateNo" HeaderText="证件编号" SortExpression="CertificateNo" />
                <asp:BoundField DataField="CertSDate" DataFormatString="{0:d}" HeaderText="起始有效日期"
                    SortExpression="CertSDate" />
                <asp:BoundField DataField="CertEDate" DataFormatString="{0:d}" HeaderText="终止有效日期"
                    SortExpression="CertEDate" />
                <asp:BoundField DataField="CertRDate" DataFormatString="{0:d}" HeaderText="复审日期"
                    SortExpression="CertRDate" />
                <asp:BoundField DataField="SXTS" HeaderText="到失效天数" SortExpression="SXTS" />
                <asp:BoundField DataField="GQTS" HeaderText="到复审天数" SortExpression="GQTS" />
                <asp:BoundField DataField="Mem" HeaderText="培训备注" SortExpression="Mem" />
</columns>
        <rowstyle backcolor="#EFF3FB"></rowstyle>
        <editrowstyle backcolor="#2461BF"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
    </infolight:webgridview>
</asp:Content>
